package com.pro.test.dao;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

import com.pro.beans.Page;

public interface BaseDao<T> {
	public T getObject(int id);
	public List<T> getObjectsByObject(T t);
	public T getObjectByObject(T t);
	public List<T> getAllObjects();
	public List<T> getObjectsByMap(@Param("map") Map<String,Object> map);
	public int addObject(T t);
	public int updateObject(T t);
	public List<T> getObjectsByLikeMap(@Param("map") Map<String,Object> map);
	public List<T> getObjectsByPage(Page page);
}
